package es.us.lsi.mwm;

public class ClassA {
    
    private long id;
    private String desc;
    
    
    public ClassA() {
        super();
    }


    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }


    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof ClassA)) {
            return false;
        }
        final ClassA other = (ClassA) object;
        if (id != other.id) {
            return false;
        }
        if (!(desc == null ? other.desc == null : desc.equals(other.desc))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + (int) (id ^ (id >>> 32));
        result = PRIME * result + ((desc == null) ? 0 : desc.hashCode());
        return result;
    }
    
    public String toString(){
        return desc;
    }
}


